/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.tewi.jeeunit.lifecycle;

import pl.tewi.jeeunit.junit4.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pl.tewi.jeeunit.annotations.Application;
import pl.tewi.jeeunit.annotations.ApplicationServer;
import pl.tewi.jeeunit.annotations.Applications;
import pl.tewi.jeeunit.types.ApplicationServerType;

/**
 * Test kolejności wykonania operacji przez {@link JeeSuite}
 * @author Marcin Kwapisz
 */
@RunWith(JeeSuite.class)
@Suite.SuiteClasses({TestClassForTests.class,TestClassForTests2.class})
@ApplicationServer(serverType= ApplicationServerType.DUMMY)
@Applications(applications={@Application(name="classes",applicationPath="target")})
public class DummyServerTestSuite {
    
    private static final Logger LOGGER = LoggerFactory.getLogger(DummyServerTestSuite.class);

    @BeforeClass
    public static void setUpClass() throws Exception {
        LOGGER.info("Running suite setUpClass static method");
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
        LOGGER.info("Running suite tearDownClass static method");
    }

    @Before
    public void setUp() throws Exception {
        LOGGER.info("Running suite setUp method");
    }

    @After
    public void tearDown() throws Exception {
        LOGGER.info("Running suite tearDown method");
    }
    
}
